package cn.zhage.aimin.admin1.controller.drug;

import cn.zhage.aimin.admin1.feign.DrugFeignClient;
import cn.zhage.aimin.base.response.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 *
 * @author 渣哥
 */
@RestController
@RequestMapping("/drug")
@RequiredArgsConstructor
public class DrugController {

    private final DrugFeignClient drugFeignClient;

    @GetMapping("/list")
    public Result<?> list() {
        return drugFeignClient.list();
    }
}
